-- GENERATED SPELL FOR [Summoner Kanthin] --


function spell0_19657(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(19816,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19657', 3000, 1)
end

function spell1_19657(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(11831,pUnit)
pUnit:RegisterEvent('Sorts_19657', 8261, 1)
end

function spell2_19657(pUnit, Event) --@Pyroblast,n/a--
pUnit:FullCastSpellOnTarget(17273,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19657', 18000, 1)
end

function Sorts_19657(pUnit, Event)
local choix_sorts_19657 = math.random(0, 2)
if choix_sorts_19657 == 0 then
pUnit:RegisterEvent('spell0_19657', 1, 1)
end
if choix_sorts_19657 == 1 then
pUnit:RegisterEvent('spell1_19657', 1, 1)
end
if choix_sorts_19657 == 2 then
pUnit:RegisterEvent('spell2_19657', 1, 1)
end
end

function mob19657_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19657', math.random(1500, 3000), 1)
end

function mob19657_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19657_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19657_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19657, 1, 'mob19657_Action')
RegisterUnitEvent(19657, 2, 'mob19657_Leave')
RegisterUnitEvent(19657, 3, 'mob19657_Kill')
RegisterUnitEvent(19657, 4, 'mob19657_Die')
